package com.tudouji.project.customer.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.tudouji.project.customer.mapper.CustbaseinfoMapper;
import com.tudouji.project.customer.domain.Custbaseinfo;
import com.tudouji.project.customer.service.ICustbaseinfoService;

/**
 * 客户经营情况Service业务层处理
 * 
 * @author tudouji
 * @date 2022-05-18
 */
@Service
public class CustbaseinfoServiceImpl implements ICustbaseinfoService 
{
    @Autowired
    private CustbaseinfoMapper custbaseinfoMapper;

    /**
     * 查询客户经营情况
     * 
     * @param guid 客户经营情况ID
     * @return 客户经营情况
     */
    @Override
    public Custbaseinfo selectCustbaseinfoById(String guid)
    {
        return custbaseinfoMapper.selectCustbaseinfoById(guid);
    }

    /**
     * 查询客户经营情况列表
     * 
     * @param custbaseinfo 客户经营情况
     * @return 客户经营情况
     */
    @Override
    public List<Custbaseinfo> selectCustbaseinfoList(Custbaseinfo custbaseinfo)
    {
        return custbaseinfoMapper.selectCustbaseinfoList(custbaseinfo);
    }

    /**
     * 新增客户经营情况
     * 
     * @param custbaseinfo 客户经营情况
     * @return 结果
     */
    @Override
    public int insertCustbaseinfo(Custbaseinfo custbaseinfo)
    {
        return custbaseinfoMapper.insertCustbaseinfo(custbaseinfo);
    }

    /**
     * 修改客户经营情况
     * 
     * @param custbaseinfo 客户经营情况
     * @return 结果
     */
    @Override
    public int updateCustbaseinfo(Custbaseinfo custbaseinfo)
    {
        return custbaseinfoMapper.updateCustbaseinfo(custbaseinfo);
    }

    /**
     * 批量删除客户经营情况
     * 
     * @param guids 需要删除的客户经营情况ID
     * @return 结果
     */
    @Override
    public int deleteCustbaseinfoByIds(String[] guids)
    {
        return custbaseinfoMapper.deleteCustbaseinfoByIds(guids);
    }

    /**
     * 删除客户经营情况信息
     * 
     * @param guid 客户经营情况ID
     * @return 结果
     */
    @Override
    public int deleteCustbaseinfoById(String guid)
    {
        return custbaseinfoMapper.deleteCustbaseinfoById(guid);
    }
}
